Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-495

WARNINGs based on usage of @Component for MavenSession/MavenProject instead of @Parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.10.2
    • 3.11.0
    • None
    • None

    Description

      A change of parameters like this:

      @Parameter(defaultValue = "${project}", readonly = true, required = true)
      

      into:

      @Component
      

      This will result in WARNINGs like this:

      Warning:  Deprecated @Component annotation for 'session' field in org.apache.maven.plugins.dependency.GetMojo: replace with @Parameter( defaultValue = "${session}", readonly = true )
      

      The shown deprecation message is wrong. It is fine to use that for components to be injected.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              khmarbaise Karl Heinz Marbaise
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: